#if !defined(AFX_CHARTADVANCEDLEGENDVIEW_H__1E6CE757_2134_4670_99C5_547890F9EA03__INCLUDED_)
#define AFX_CHARTADVANCEDLEGENDVIEW_H__1E6CE757_2134_4670_99C5_547890F9EA03__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a sample for BCGControlBar Library Professional Edition
// Copyright (C) 1998-2016 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions 
// of the accompanying license agreement.
//*******************************************************************************
//
// ChartAdvancedLegendView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CChartAdvancedLegendView dialog

#include "BCGPChartExampleDoc.h"
#include "BCGPChartExampleView.h"

class CChartLegendCheckBox;
class CChartLegendRadioButton;

class CChartAdvancedLegendView : public CBCGPChartExampleView
{
protected:
	CChartAdvancedLegendView();
	DECLARE_DYNCREATE(CChartAdvancedLegendView)

// Form Data
	//{{AFX_DATA(CChartAdvancedLegendView)
	enum { IDD = IDD_CHART_ADVANCED_LEGEND };
	CBCGPButton	m_wndCustomEntries;
	CBCGPVisualContainerCtrl	m_wndContainer;
	CBCGPEdit	m_wndLegendName;
	int		m_nHorzAlignment;
	CString	m_strLegendName;
	BOOL	m_bShowChartNameInLegend;
	BOOL	m_bShowChart1;
	BOOL	m_bShowChart2;
	BOOL	m_bShowLegendTitle;
	int		m_nVerticalAlignment;
	BOOL	m_bIsVerticalLayout;
	BOOL	m_bCustomEntries;
	BOOL	m_bShowGridLines;
	//}}AFX_DATA

public:
	void OnLegendCheckBoxClicked(CChartLegendCheckBox* pCheckBox);
	void OnLegendRadioButtonClicked(CChartLegendRadioButton* pRadioButton);

// Overrides
	virtual CBCGPBaseVisualCtrl* GetCtrl()
	{
		return &m_wndContainer;
	}

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChartAdvancedLegendView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

	virtual void UpdateChartColorTheme(int nTheme, BOOL bIsDarkTheme);
	virtual void OnChartAnimation();

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CChartAdvancedLegendView)
	afx_msg void OnUpdate();
	afx_msg void OnUpdateLegendName();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	afx_msg LRESULT OnLegendContentCreated(WPARAM wp, LPARAM lp);
	DECLARE_MESSAGE_MAP()

	void Repos();

	CBCGPChartVisualObject*			m_pChart1;
	CBCGPChartVisualObject*			m_pChart2;
	CBCGPChartLegendVisualObject*	m_pLegend;

	CBCGPBrush						m_brCustomCellBackground;
	CBCGPBrush						m_brCustomCellText;

	CChartLegendCheckBox*			m_pCheck1;
	CChartLegendRadioButton*		m_pRadio1;
	CChartLegendRadioButton*		m_pRadio2;

	BOOL							m_bIsChecked;
	int								m_nOption;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHARTADVANCEDLEGENDVIEW_H__1E6CE757_2134_4670_99C5_547890F9EA03__INCLUDED_)
